package com.traffic.api.dao;

import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *	提供CRUD 和seletcAll
 *	Created by churcy on 2017/2/15.
 */
@Repository
public interface BaseMapper<T>{
	/*****************CRUD操作********************/

	int insert(T t);

	int deleteByPrimaryKey(Object key);

	int updateByPrimaryKey(T t);

	T selectByPrimaryKey(Object key);

	List<T> selectAll();

}
